package edu.gatech.volt2.drdoommgt.gui;

import java.awt.Color;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.List;

import javax.swing.JPanel;

import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartFrame;
import org.jfree.chart.ChartPanel;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.axis.DateAxis;
import org.jfree.chart.plot.XYPlot;
import org.jfree.chart.renderer.xy.XYItemRenderer;
import org.jfree.chart.renderer.xy.XYLineAndShapeRenderer;
import org.jfree.data.general.Dataset;
import org.jfree.data.general.DefaultPieDataset;
import org.jfree.data.time.Day;
import org.jfree.data.time.TimeSeries;
import org.jfree.data.time.TimeSeriesCollection;
import org.jfree.ui.RectangleInsets;

import edu.gatech.volt2.drdoommgt.domain.Patient;
import edu.gatech.volt2.drdoommgt.domain.TreatmentRecord;

/** 
* A simple introduction to using JFreeChart. This demo is described in the 
* JFreeChart Developer Guide. 
*/ 
public class PatientChartDisplay {
	
	private List<TreatmentRecord> list;
	private int weight;
	private Calendar date;

	

//	
//	/**
//     * Creates a panel for the demo (used by SuperDemo.java).
//     *
//     * @return A panel.
//     */
//	public JPanel createChartPanel() {
//        JFreeChart chart = createChart();
//        ChartPanel panel = new ChartPanel(chart);
//        panel.setFillZoomRectangle(true);
//        panel.setMouseWheelEnabled(true);
//        return panel;
//    }
//	
//	/** 
//	 * The starting point for the file. 
//	 * @param args ignored
//	 */ 
//	public static void main(String[] args) { 
//		//weight = VitalSigns.getWeight();
//		//date = TreatmentRecord.getDate();
//		
//		// create a dataset... 
//		Dataset data = new DefaultPieDataset(); 
//		
//		
//		// create a chart... 
//		TimeSeries chart = new TimeSeries("Vital Signs", Day.class);
//		//chart.add();
//		TimeSeriesCollection dataset = new TimeSeriesCollection();
//		dataset.addSeries(chart);
//		JFreeChart freeChart = ChartFactory.createTimeSeriesChart("Weight over Time",
//				"Date", "Weight", dataset, true, true, false);
//
//		//create and display a frame... 
//		ChartFrame frame = new ChartFrame("First", freeChart); 
//		frame.pack(); 
//		frame.setVisible(true); 
//	} 
} 
